(function () {
    'use strict';

    var officeAddin = angular.module('reportOfficeAddin', [
      'ngRoute',
      'ngSanitize'
    ]);

    officeAddin.config(['$logProvider', function ($logProvider) {
        if ($logProvider.debugEnabled) {
            $logProvider.debugEnabled(true);
        }
    }]);

    // when Office has initalized, manually bootstrap the app
    Office.initialize = function () {
        console.log('>>> Office.initialize()');
        angular.bootstrap(document.getElementById('container'), ['reportOfficeAddin']);
    };

})();
